package com.chb.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.Map;

@Controller
public class PageController {

    @RequestMapping("/listgoods")
    public String toGoodsList(){
        return "/goods/goods-list";
    }

    @RequestMapping("/main")
    public String toMain(){
        return "/main";
    }


    @RequestMapping("/")
    public String toLogin(){
        return "/login";
    }

    @RequestMapping("/index")
    public String toIndex(){
        return "/index";
    }

    @RequestMapping("/listadmins")
    public String toAdminsList(){
        return "/admins/admin-list";
    }

    @RequestMapping("/listcompanys")
    public String toCompanysList(){
        return "/companys/company-list";
    }


    @RequestMapping("/listcompanysartists")
    public String toCompanysArtistsList(){
        return "/companys/company-artist-list";
    }

    @RequestMapping("/listperformances")
    public String toPerformancesList(){
        return "/performances/performance-list";
    }

    @RequestMapping("/listorders")
    public String toOrdersList(){
        return "/orders/order-list";
    }

    @RequestMapping("/performance-detail")
    public String openPerformaceDetail(){
        return "/performances/performance-detail";
    }

}
